# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Article',
            fields=[
                ('id', models.AutoField(auto_created=True, serialize=False, primary_key=True, verbose_name='ID')),
                ('title', models.CharField(max_length=256)),
                ('category', models.CharField(default='未标签', blank=True, max_length=50)),
                ('dateTime', models.DateTimeField(auto_now=True)),
                ('content', models.TextField(null=True, blank=True)),
                ('author', models.CharField(default='匿名', max_length=50)),
            ],
            options={
                'ordering': ['-dateTime'],
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='Comment',
            fields=[
                ('id', models.AutoField(auto_created=True, serialize=False, primary_key=True, verbose_name='ID')),
                ('nickName', models.CharField(default='游客', max_length=32)),
                ('content', models.TextField()),
                ('dateTime', models.DateTimeField(auto_now=True)),
                ('atricle', models.ForeignKey(null=True, to='blog.Article')),
            ],
            options={
                'ordering': ['-dateTime'],
            },
            bases=(models.Model,),
        ),
    ]
